Here is the code.
How can I tell how many tokens in tok? Is there a "size()" like STL containers?
Of course I can use an iterator in a 'for' loop to scan and count, but is there an Off-The-Shelf function?
Code:
#include <boost/tokenizer.hpp>

    string iine("123#456#789");
    typedef boost::tokenizer< boost::char_separator<char> > token;             
    boost::char_separator<char> sep("#");                                      
    token tok(line, sep);                                                      

    cout<<tok.size()<<endl // Is there a function like this?